<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="/fuman/js/oversea.js"></script>
<title>发货计划</title>
<body class="withvernav">
<div class="bodywrapper"> {{include file='/public/leftmenu.tpl'}}
  <div class="centercontent">
    <div class="pageheader notab">
      <h1 class="pagetitle">查看发货计划</h1>
      <span class="pagedesc"></span>
      <div class="menulist">
        <ul class="profile_summary">
          <li class="current"></li>
        </ul>
      </div>
    </div>
    <!--pageheader-->
    
    <div id="contentwrapper" class="contentwrapper">
      <div id="basicform" class="subcontent">
        <form class="stdform stdform2"  id="theFrom" method="post" action="/oversea/savecompare">
        
         <div class="contenttitle2">
            <h3>基本信息</h3>
          </div>
             <table cellpadding="0" cellspacing="0" border="0" class="stdtable">
          
            <thead>
              <tr>
                <th class="head1">运输编号</th>
                <th class="head1">运输方式</th>
                {{if $detail.shopname}}
                <th class="head1">店铺</th>{{/if}}
                <th class="head1">始发地</th>
                <th class="head1">目的地</th>
                
               
              </tr>
            </thead>
            <tbody>
            
           
            <tr>
              <td class="head1">{{$detail.groupid}}</td>
              <td class="head0">{{$detail.transportmode}}</td>
              {{if $detail.shopname}}
              <td>{{$detail.shopname}}</td>{{/if}}
              <td class="center">{{$detail.startingplace}}</td>
              <td class="center">{{$detail.destination}}</td>
            </tr>
              </tbody>
            
          </table>
          
          
          <div class="contenttitle2">
            <h3>计划发货清单</h3>
          </div>
          <table cellpadding="0" cellspacing="0" border="0" class="stdtable">
            <colgroup>
            <col class="con1" />
            <col class="con0" />
            <col class="con1" />
            <col class="con0" />
            <col class="con1" />
            <col class="con0" />
            <col class="con1" />
            </colgroup>
            <thead>
              <tr>
                <th class="head0">SKU</th>
                <th class="head1">商品名称</th>
                <th class="head0">重量 KG</th>
                <th class="head1">体积 CBM</th>
                <th class="head0">长 CM</th>
                <th class="head0">宽 CM</th>
                <th class="head0">高 CM</th>
                <th class="head0">成本价</th>
                <th class="head0">发货数</th>
                <th class="head0">价格</th>
              </tr>
            </thead>
            <tbody>
            
            {{foreach from=$goodsdata item=li key=key}}
            <tr>
              <td>{{$li.sku}}
                <input type="hidden" name="goodslist[sku][]" value="{{$li.sku}}"></td>
              <td>{{$li.name}}</td>
              <td>{{$li.weight}}</td>
              <td class="center">{{$li.volumenum}}</td>
              <td class="center">{{$li.lengthnum}}</td>
              <td class="center">{{$li.widthnum}}</td>
              <td class="center">{{$li.heightnum}}</td>
              <td class="center">{{$li.costprice}}
                <input type="hidden" name="goodslist[costprice][]" value="{{$li.costprice}}"></td>
              <td class="center">{{$li.sendnums}}
                <input type="hidden" name="goodslist[sendnums][]" value="{{$li.sendnums}}"></td>
              <td class="center">{{$li.totalprice}}</td>
            </tr>
            {{/foreach}}
              </tbody>
            
          </table>
           <div class="contenttitle2">
            <h3>合计信息</h3>
          </div>
          <div class="bq2 currentstatus marginbottom0">
                      SKU数 ：{{$detail.skunum}}个&nbsp;&nbsp;&nbsp;&nbsp;数量: {{$detail.totalnum}}&nbsp;&nbsp;&nbsp;&nbsp; 金额：{{$detail.totalamount}} 
                      {{if $detail.boxlistcount>0}}
                      <br> 箱数：{{$detail.boxlistcount}}箱&nbsp;&nbsp;&nbsp;&nbsp;包装成本 {{$detail.boxlistcos}}&nbsp;&nbsp;&nbsp;&nbsp;
                      {{/if}}
                    </div>
              
              {{if $statuslist}}
          <div class="contenttitle2">
            <h3>运输状态跟踪</h3>
          </div>
          <table cellpadding="0" cellspacing="0" border="0" class="stdtable">
            <colgroup>
            <col class="con1" />
            <col class="con0" />
            <col class="con1" />
            <col class="con0" />
            <col class="con1" />
            <col class="con0" />
            <col class="con1" />
            </colgroup>
            <thead>
              <tr>
                <th class="head0">发货时间</th>
                <th class="head1">到货时间</th>
                <th class="head0">运费</th>
                <th class="head1">运费说明</th>
                <th class="head0">参考号</th>
                <th class="head0">承运人</th>
                <th class="head0">运输方式</th>
                <th class="head0">创建者</th>
                <th class="head0">创建时间</th>
                <th class="head0">操作</th>
              </tr>
            </thead>
            <tbody>
            
            {{foreach from=$statuslist item=li key=key}}
            <tr>
              <td>{{$li.projectdate}}</td>
              <td>{{$li.endprojectdate}}</td>
              <td>{{$li.freight}}</td>
              <td class="center">{{$li.projectdateremake}}</td>
              <td class="center">{{$li.ck}}</td>
              <td class="center">{{$li.carrier}}</td>
              <td class="center">{{$li.transportmode}}</td>
              <td class="center">{{$li.createUser}}</td>
              <td class="center">{{$li.instime}}</td>
              <td class="head0">{{if $detail.status !=5}} <a href="javascript:void(0)" onClick="ediplan({{$li.id}})"> 修改</a>｜<a href="javascript:void(0)" onClick="delstatuslist({{$li.id}},{{$detail.id}})">删除</a>{{/if}}</td>
            </tr>
            {{/foreach}}
              </tbody>
            
           
          </table>
          {{/if}}
          
          <p class="stdformbutton"> <span >
            <input type="hidden" name="groupid" value="{{$detail.groupid}}">
            <input type="hidden" name="transportationplanning_id" value="{{$detail.id}}">
            <!-- <button type="submit" class="submit radius2" id="btn" >编辑</button>--> 
            {{if $detail.status==1 && $department ==2}}
            <button type="button" onClick="changstatus(2,{{$detail.id}},1)" class="submit radius2" id="btn" >一审通过</button>
            <button type="button" onClick="changstatus(22,{{$detail.id}},1)" class="submit radius2" id="btn" >一审不通过</button>
            {{/if}}
            {{if $detail.status==2 && $department ==1}}
            <button type="button" onClick="changstatus(3,{{$detail.id}},1)" class="submit radius2" id="btn" >二审通过</button>
            <button type="button" onClick="changstatus(33,{{$detail.id}},1)" class="submit radius2" id="btn" >二审不通过</button>
            {{/if}} 
            
           
            </span> </p>
        </form>
        <br />
      </div>
      <!--subcontent--> 
      
      <!--subcontent--> 
      
    </div>
    <!--contentwrapper--> 
    
  </div>
  <!-- centercontent --> 
  
</div>

</body>
</html>